package com.shopping.product.feign;

import com.shopping.common.utils.R;
import com.shopping.product.entity.WareSkuEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author Europa
 */
@FeignClient("ware")
public interface WareFeignService {

    @PostMapping("/ware/waresku/hasstock")
    R getSkuHasStock(@RequestBody List<Long> skuIds);

    @RequestMapping("/ware/waresku/save")
    R save(@RequestBody WareSkuEntity wareSku);
}
